package sh.wnxy.wn38.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import sh.wnxy.wn38.entity.Orderitem;
import sh.wnxy.wn38.mapper.OrderitemMapper;
import sh.wnxy.wn38.service.IOrderitemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wn38
 * @since 2021-07-15
 */
@Service
public class OrderitemServiceImpl extends ServiceImpl<OrderitemMapper, Orderitem> implements IOrderitemService {
  @Autowired
   OrderitemMapper orderitemMapper;

    @Override
    public List<Orderitem> selectByOrderId(String orderid) {
        List<Orderitem> orderitems = orderitemMapper.selectByOrderId(orderid);
        return orderitems;
    }
}
